<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Wheelphone Library: com.wheelphone.wheelphonelibrary.USBAccessoryManager Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Wheelphone Library
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pac-methods">Package Functions</a>  </div>
  <div class="headertitle">
<div class="title">com.wheelphone.wheelphonelibrary.USBAccessoryManager Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="com::wheelphone::wheelphonelibrary::USBAccessoryManager" -->
<p><a href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><b>ReadThread</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="enumcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_1_1_r_e_t_u_r_n___c_o_d_e_s.html">RETURN_CODES</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_1_1_u_s_b_accessory_manager_exception.html">USBAccessoryManagerException</a></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html#aaced9abf10f661456e060c6068b6208d">USBAccessoryManager</a> (Handler handler, int what)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_1_1_r_e_t_u_r_n___c_o_d_e_s.html">RETURN_CODES</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html#a999a7a5d0469b66013752840aa54ce2c">enable</a> (Context context, Intent intent)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html#a80c691606bf41f3364233533a79187b3">disable</a> (Context context)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html#a7680a7f38180bcc1a8bd9c21e45702f9">isConnected</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html#aeeb56f236f200606f32481f523a4fd52">write</a> (byte[] data)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a66031bc604438504f63971d289401312"></a><!-- doxytag: member="com::wheelphone::wheelphonelibrary::USBAccessoryManager::isClosed" ref="a66031bc604438504f63971d289401312" args="()" -->
boolean&#160;</td><td class="memItemRight" valign="bottom"><b>isClosed</b> ()</td></tr>
<tr><td colspan="2"><h2><a name="pac-methods"></a>
Package Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html#a363d59886576bf4d5295a28d947980ba">ignore</a> (int num)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html#ab2cf63c2c3e29232a3e836046f07477b">peek</a> (byte[] array)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html#a2a5fbbb72d6f4a94545e7b5bb06aeab5">available</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html#af9d378ad037343a219e322c10d874848">read</a> (byte[] array)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A class created to assist in making accessing a USB accessory easier for those that are less familiar with programming in Java, working with threads/handlers/synchronization, and those that are not familiar with the Open Accessory framework interface</p>
<dl class="author"><dt><b>Author:</b></dt><dd>Microchip Technology Inc. </dd></dl>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aaced9abf10f661456e060c6068b6208d"></a><!-- doxytag: member="com::wheelphone::wheelphonelibrary::USBAccessoryManager::USBAccessoryManager" ref="aaced9abf10f661456e060c6068b6208d" args="(Handler handler, int what)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html#aaced9abf10f661456e060c6068b6208d">com.wheelphone.wheelphonelibrary.USBAccessoryManager.USBAccessoryManager</a> </td>
          <td>(</td>
          <td class="paramtype">Handler&#160;</td>
          <td class="paramname"><em>handler</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>what</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Public API Creates new USB Accessory Manager</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">handler</td><td>The handler where to send USB accessory event messages </td></tr>
    <tr><td class="paramname">what</td><td>The "what" value to use for USB accessory event messages </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a2a5fbbb72d6f4a94545e7b5bb06aeab5"></a><!-- doxytag: member="com::wheelphone::wheelphonelibrary::USBAccessoryManager::available" ref="a2a5fbbb72d6f4a94545e7b5bb06aeab5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html#a2a5fbbb72d6f4a94545e7b5bb06aeab5">com.wheelphone.wheelphonelibrary.USBAccessoryManager.available</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [package]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Indicates the number of bytes that are currently in the read buffer. There will be at least this many bytes to read from the buffer (as long as the accessory has not detach or been closed since the call to this function.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the number of bytes available in the read queue </dd></dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_a2a5fbbb72d6f4a94545e7b5bb06aeab5_cgraph.png" border="0" usemap="#classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_a2a5fbbb72d6f4a94545e7b5bb06aeab5_cgraph" alt=""/></div>
<map name="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_a2a5fbbb72d6f4a94545e7b5bb06aeab5_cgraph" id="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_a2a5fbbb72d6f4a94545e7b5bb06aeab5_cgraph">
<area shape="rect" id="node3" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html#a7680a7f38180bcc1a8bd9c21e45702f9" title="com.wheelphone.wheelphonelibrary.USBAccessoryManager.isConnected" alt="" coords="477,5,923,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a80c691606bf41f3364233533a79187b3"></a><!-- doxytag: member="com::wheelphone::wheelphonelibrary::USBAccessoryManager::disable" ref="a80c691606bf41f3364233533a79187b3" args="(Context context)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html#a80c691606bf41f3364233533a79187b3">com.wheelphone.wheelphonelibrary.USBAccessoryManager.disable</a> </td>
          <td>(</td>
          <td class="paramtype">Context&#160;</td>
          <td class="paramname"><em>context</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Disables the USB manager and releases all resources</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>The context that the manager was enabled with </td></tr>
  </table>
  </dd>
</dl>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_a80c691606bf41f3364233533a79187b3_icgraph.png" border="0" usemap="#classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_a80c691606bf41f3364233533a79187b3_icgraph" alt=""/></div>
<map name="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_a80c691606bf41f3364233533a79187b3_icgraph" id="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_a80c691606bf41f3364233533a79187b3_icgraph">
<area shape="rect" id="node3" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_wheelphone_robot.html#a001f0b5e413eec78e8055a56b9e5da5f" title="To be inserted into the &quot;onPause&quot; function of the main activity class." alt="" coords="470,5,962,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a999a7a5d0469b66013752840aa54ce2c"></a><!-- doxytag: member="com::wheelphone::wheelphonelibrary::USBAccessoryManager::enable" ref="a999a7a5d0469b66013752840aa54ce2c" args="(Context context, Intent intent)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_1_1_r_e_t_u_r_n___c_o_d_e_s.html">RETURN_CODES</a> <a class="el" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html#a999a7a5d0469b66013752840aa54ce2c">com.wheelphone.wheelphonelibrary.USBAccessoryManager.enable</a> </td>
          <td>(</td>
          <td class="paramtype">Context&#160;</td>
          <td class="paramname"><em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Intent&#160;</td>
          <td class="paramname"><em>intent</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Enables the</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>The context that the USB manager should register to </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="enumcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_1_1_r_e_t_u_r_n___c_o_d_e_s.html">RETURN_CODES</a> - the status of the enable request </dd></dl>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_a999a7a5d0469b66013752840aa54ce2c_icgraph.png" border="0" usemap="#classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_a999a7a5d0469b66013752840aa54ce2c_icgraph" alt=""/></div>
<map name="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_a999a7a5d0469b66013752840aa54ce2c_icgraph" id="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_a999a7a5d0469b66013752840aa54ce2c_icgraph">
<area shape="rect" id="node3" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_wheelphone_robot.html#a2977fe381051570c91f7690cb931f458" title="To be inserted into the &quot;onResume&quot; function of the main activity class." alt="" coords="465,5,965,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a363d59886576bf4d5295a28d947980ba"></a><!-- doxytag: member="com::wheelphone::wheelphonelibrary::USBAccessoryManager::ignore" ref="a363d59886576bf4d5295a28d947980ba" args="(int num)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html#a363d59886576bf4d5295a28d947980ba">com.wheelphone.wheelphonelibrary.USBAccessoryManager.ignore</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>num</em></td><td>)</td>
          <td><code> [package]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>I/O API discards the specified number of bytes from the internal read buffer</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">num</td><td>the number of bytes to discard </td></tr>
  </table>
  </dd>
</dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_a363d59886576bf4d5295a28d947980ba_cgraph.png" border="0" usemap="#classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_a363d59886576bf4d5295a28d947980ba_cgraph" alt=""/></div>
<map name="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_a363d59886576bf4d5295a28d947980ba_cgraph" id="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_a363d59886576bf4d5295a28d947980ba_cgraph">
<area shape="rect" id="node3" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html#a7680a7f38180bcc1a8bd9c21e45702f9" title="com.wheelphone.wheelphonelibrary.USBAccessoryManager.isConnected" alt="" coords="461,5,907,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a7680a7f38180bcc1a8bd9c21e45702f9"></a><!-- doxytag: member="com::wheelphone::wheelphonelibrary::USBAccessoryManager::isConnected" ref="a7680a7f38180bcc1a8bd9c21e45702f9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean <a class="el" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html#a7680a7f38180bcc1a8bd9c21e45702f9">com.wheelphone.wheelphonelibrary.USBAccessoryManager.isConnected</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Describes if an accessory is attached or not</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>boolean - true if one is attached, false otherwise </dd></dl>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_a7680a7f38180bcc1a8bd9c21e45702f9_icgraph.png" border="0" usemap="#classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_a7680a7f38180bcc1a8bd9c21e45702f9_icgraph" alt=""/></div>
<map name="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_a7680a7f38180bcc1a8bd9c21e45702f9_icgraph" id="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_a7680a7f38180bcc1a8bd9c21e45702f9_icgraph">
<area shape="rect" id="node3" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html#a363d59886576bf4d5295a28d947980ba" title="com.wheelphone.wheelphonelibrary.USBAccessoryManager.ignore" alt="" coords="507,5,915,32"/><area shape="rect" id="node5" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html#ab2cf63c2c3e29232a3e836046f07477b" title="com.wheelphone.wheelphonelibrary.USBAccessoryManager.peek" alt="" coords="510,56,911,83"/><area shape="rect" id="node7" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html#a2a5fbbb72d6f4a94545e7b5bb06aeab5" title="com.wheelphone.wheelphonelibrary.USBAccessoryManager.available" alt="" coords="499,107,922,133"/><area shape="rect" id="node9" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html#af9d378ad037343a219e322c10d874848" title="com.wheelphone.wheelphonelibrary.USBAccessoryManager.read" alt="" coords="511,157,910,184"/><area shape="rect" id="node11" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html#aeeb56f236f200606f32481f523a4fd52" title="com.wheelphone.wheelphonelibrary.USBAccessoryManager.write" alt="" coords="511,208,911,235"/><area shape="rect" id="node13" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_wheelphone_robot.html#a001f0b5e413eec78e8055a56b9e5da5f" title="To be inserted into the &quot;onPause&quot; function of the main activity class." alt="" coords="971,208,1463,235"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ab2cf63c2c3e29232a3e836046f07477b"></a><!-- doxytag: member="com::wheelphone::wheelphonelibrary::USBAccessoryManager::peek" ref="ab2cf63c2c3e29232a3e836046f07477b" args="(byte[] array)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html#ab2cf63c2c3e29232a3e836046f07477b">com.wheelphone.wheelphonelibrary.USBAccessoryManager.peek</a> </td>
          <td>(</td>
          <td class="paramtype">byte[]&#160;</td>
          <td class="paramname"><em>array</em></td><td>)</td>
          <td><code> [package]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>fills the array with data from the read buffer without discarding it.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">array</td><td>the buffer to fill </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the number of bytes copied from the buffer </dd></dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_ab2cf63c2c3e29232a3e836046f07477b_cgraph.png" border="0" usemap="#classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_ab2cf63c2c3e29232a3e836046f07477b_cgraph" alt=""/></div>
<map name="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_ab2cf63c2c3e29232a3e836046f07477b_cgraph" id="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_ab2cf63c2c3e29232a3e836046f07477b_cgraph">
<area shape="rect" id="node3" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html#a7680a7f38180bcc1a8bd9c21e45702f9" title="com.wheelphone.wheelphonelibrary.USBAccessoryManager.isConnected" alt="" coords="456,5,901,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="af9d378ad037343a219e322c10d874848"></a><!-- doxytag: member="com::wheelphone::wheelphonelibrary::USBAccessoryManager::read" ref="af9d378ad037343a219e322c10d874848" args="(byte[] array)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html#af9d378ad037343a219e322c10d874848">com.wheelphone.wheelphonelibrary.USBAccessoryManager.read</a> </td>
          <td>(</td>
          <td class="paramtype">byte[]&#160;</td>
          <td class="paramname"><em>array</em></td><td>)</td>
          <td><code> [package]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Reads bytes from the read buffer, removing them from the buffer once read</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">array</td><td>where to copy the data </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the number of bytes copied (maximum will be the length of the array param </dd></dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_af9d378ad037343a219e322c10d874848_cgraph.png" border="0" usemap="#classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_af9d378ad037343a219e322c10d874848_cgraph" alt=""/></div>
<map name="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_af9d378ad037343a219e322c10d874848_cgraph" id="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_af9d378ad037343a219e322c10d874848_cgraph">
<area shape="rect" id="node3" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html#a7680a7f38180bcc1a8bd9c21e45702f9" title="com.wheelphone.wheelphonelibrary.USBAccessoryManager.isConnected" alt="" coords="453,5,899,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aeeb56f236f200606f32481f523a4fd52"></a><!-- doxytag: member="com::wheelphone::wheelphonelibrary::USBAccessoryManager::write" ref="aeeb56f236f200606f32481f523a4fd52" args="(byte[] data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html#aeeb56f236f200606f32481f523a4fd52">com.wheelphone.wheelphonelibrary.USBAccessoryManager.write</a> </td>
          <td>(</td>
          <td class="paramtype">byte[]&#160;</td>
          <td class="paramname"><em>data</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Writes data to the accessory</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>the data to write </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname">InterruptedException</td><td></td></tr>
  </table>
  </dd>
</dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_aeeb56f236f200606f32481f523a4fd52_cgraph.png" border="0" usemap="#classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_aeeb56f236f200606f32481f523a4fd52_cgraph" alt=""/></div>
<map name="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_aeeb56f236f200606f32481f523a4fd52_cgraph" id="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_aeeb56f236f200606f32481f523a4fd52_cgraph">
<area shape="rect" id="node3" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html#a7680a7f38180bcc1a8bd9c21e45702f9" title="com.wheelphone.wheelphonelibrary.USBAccessoryManager.isConnected" alt="" coords="453,5,899,32"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_aeeb56f236f200606f32481f523a4fd52_icgraph.png" border="0" usemap="#classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_aeeb56f236f200606f32481f523a4fd52_icgraph" alt=""/></div>
<map name="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_aeeb56f236f200606f32481f523a4fd52_icgraph" id="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager_aeeb56f236f200606f32481f523a4fd52_icgraph">
<area shape="rect" id="node3" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_wheelphone_robot.html#a001f0b5e413eec78e8055a56b9e5da5f" title="To be inserted into the &quot;onPause&quot; function of the main activity class." alt="" coords="454,5,946,32"/></map>
</div>
</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>H:/lavoro/local-repo/phonebot-working/_android-side/WheelphoneLibrary/src/com/wheelphone/wheelphonelibrary/USBAccessoryManager.java</li>
</ul>
</div><!-- contents -->
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>com</b>      </li>
      <li class="navelem"><b>wheelphone</b>      </li>
      <li class="navelem"><b>wheelphonelibrary</b>      </li>
      <li class="navelem"><a class="el" href="classcom_1_1wheelphone_1_1wheelphonelibrary_1_1_u_s_b_accessory_manager.html">USBAccessoryManager</a>      </li>

    <li class="footer">Generated on Fri Jun 14 2013 11:31:55 for Wheelphone Library by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
